## 构造接口的请求方式，接口的地址，请求头


from autoTest_brtcApi.core.rest_client import RestClient


class UserApiUtils(RestClient):

    def reg_util(self, headers, **kwargs):
        res = self.excute_request("POST", '/register', headers, **kwargs)
        return res


    def res_util(self, headers, **kwargs):
        res1 = self.excute_request("POST", '/login', headers, **kwargs)
        return res1

    def res_modifyUserNick_util(self, headers, **kwargs):
        res2 = self.excute_request("PUT", '/modifyUserNick', headers, **kwargs)
        return res2

## 实例化 UserApiUtils()
userApiUtil = UserApiUtils()
